package com.xzx.framework.enumUtil;

/**
 * api执行结果
 * @author zpf
 *
 */
public enum ApiCode {
	SUCCESS("成功", 9999), 
	SUCCESSNULL("成功但为空", 9000), 
	ILLEGALARGUMENT("非法参数", 8000), 
	NOAUTH("权限不够", 7000), 
	INVALIDTOKEN("无效的TOKEN", 7001), 
	ILLEGALARBIZPARAM("业务参数不正确", 6000), 
	CUSTOMERRORS("自定义错误", 5000),
	PAYPASSWORDNOTSET("支付密码未设置", 5001),
	INVALIDLOGINSTATUS("无效的登录状态-单点登录踢出",4000),
	NOTDEALORDER("有未处理订单", 2000),
	FAIL("调用失败", 1000);
	private ApiCode(String name, int code) {
		this.name = name;
		this.code = code;
	}
	private String name;
	private int code;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getCode() {
		return code;
	}
	public void setCode(int code) {
		this.code = code;
	}
	
	
}
